package com.ruoyi.mall.common.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

public class DtsUserCouponVo {

    private Long id;          // dts_coupon_user ID
    private Long couponId;    // 优惠券ID
    private String name;      // 优惠券名称
    private BigDecimal discount; // 优惠金额
    private BigDecimal min;      // 最低消费金额
    private String limitText; // 使用限制
    private Long status;       // 状态 0=未使用,1=已使用,2=已过期
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;   // 有效期结束时间
    private Boolean isExpired; // 是否即将过期(3天内)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;  //  有效期开始时间

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCouponId() {
        return couponId;
    }

    public void setCouponId(Long couponId) {
        this.couponId = couponId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getDiscount() {
        return discount;
    }

    public void setDiscount(BigDecimal discount) {
        this.discount = discount;
    }

    public BigDecimal getMin() {
        return min;
    }

    public void setMin(BigDecimal min) {
        this.min = min;
    }

    public String getLimitText() {
        return limitText;
    }

    public void setLimitText(String limitText) {
        this.limitText = limitText;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Boolean getExpired() {
        return isExpired;
    }

    public void setExpired(Boolean expired) {
        isExpired = expired;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }
}
